from django.db import models

# Create your models here.
from meiduo_mall.utils.models import BaseModel


class OpenidUserModel(BaseModel):
    openid = models.CharField(max_length=64, verbose_name='第三方用户接口信息', db_index=True)
    user = models.ForeignKey('users.User', on_delete=models.CASCADE, verbose_name='用户')

    class Meta:
        db_table = 'tb_oauth_qq'
        verbose_name = 'QQ用户绑定信息'
        verbose_name_plural = 'QQ用户绑定信息'
